import { Dialog } from 'vant'

export function createImageUrl (path) {
    return path.replace('{size}', '400')
}

export function downloadFn () {
    Dialog.confirm({
        title: '下载需要手机客户端支持',
        confirmButtonText: '在客户端下载',
        confirmButtonColor: '#2ca2f9'
    }).then(() => {
        location.href = 'https://downmobile.kugou.com/Android/KugouPlayer/10409/KugouPlayer_376_V10.4.0.apk'
    })
}
